<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>数据可视化-柱状图</title>
    <style>
         #main {
            width : 1200px;
            height: 650px;
            margin : 50px auto;
        }
    </style>
</head>
<body>
 <div id="main"></div>
</body>
<script src="../static/js/echarts.js" charset="utf-8"></script>
<script>
    var myChart = echarts.init(document.getElementById('main'));
    var option = {
    title: {
        text: '{{title|safe}}',
        subtext: '{{subtitle|safe}}'
    },
    tooltip: {
        {{trigger|safe}}
    },
    legend: {
        data:{{legend|safe}}
    },
    grid: {
        left: '3%',
        right: '4%',
        bottom: '3%',
        containLabel: true
    },
    xAxis: {
        {{xAxis|safe}}
    },
    yAxis: {
        {{yAxis|safe}}
    },
    series: [
       {{series|safe}}
    ]
};
    myChart.setOption(option);
</script>
</html>